#include <stdio.h>
#include <unistd.h>

int main() {
    pid_t pid = fork();

    if (pid == 0) {
        puts("Hi i am a child process");
    } else {
        printf("child process ID: %d \n", pid);
        sleep(30);
    }

    if (pid == 0) {
       puts("End child process");
       return 7;
    } else {
        puts("End parent process");
    }

    return 0;
}